package me.yangxy.learning.controller;

import me.yangxy.learning.apimirror.BookServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class QuickTestController {


    @Autowired
    private BookServiceClient service;

//    @GetMapping("/getById/{id}")
//    public String addBook(@PathVariable("id") String id){
//        Book book = service.getBook(id);
//        System.out.println(book);
//        return "yes!";
//    }
//
//    @GetMapping("/getBooks")
//    public String getBooks(){
//        service.queryNewestBooks();
//        return "";
//    }
//
//    @GetMapping("/addBook")
//    public String addBook(){
//        service.addBook(new Book());
//        return "Add Success";
//    }
}
